﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MainPage.master" CodeFile="Ligi.aspx.cs" Inherits="Ligi" %>
<asp:Content ID="Content1" runat="server" 
    contentplaceholderid="ContentPlaceHolder2">

                <div style="height: 343px">
                
                    <table style="width:100%;">
                        <tr>
                            <td colspan="3">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="center" colspan="3">
                                <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Larger" 
                                    Text="Wybierz ligę z tabeli poniżej:"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="center" colspan="3">
                                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                                    CellPadding="4" DataSourceID="dbligi" ForeColor="#333333" GridLines="None">
                                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                    <RowStyle BackColor="#EFF3FB" />
                                    <Columns>
                                        <asp:HyperLinkField DataNavigateUrlFields="id_ligi" 
                                            DataNavigateUrlFormatString="ListaStatystyk.aspx?liga={0}" DataTextField="nazwa" 
                                            HeaderText="Nazwa ligi:" />
                                    </Columns>
                                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                    <EditRowStyle BackColor="#2461BF" />
                                    <AlternatingRowStyle BackColor="White" />
                                </asp:GridView>
                                <asp:SqlDataSource ID="dbligi" runat="server" 
                                    ConnectionString="<%$ ConnectionStrings:ZALSConnectionString %>" 
                                    SelectCommand="SELECT [nazwa], [id_ligi] FROM [LIGI] ORDER BY [nazwa]">
                                </asp:SqlDataSource>
                            </td>
                        </tr>
                    </table>
                
                </div>

</asp:Content>
